Document Solutions for Imaging
DS.Documents.Imaging.Windows Assembly / GrapeCity.Documents.Imaging.Windows Namespace / GcWicBitmap Class / Load Method / Load(String,WicContainerFormat,Int32,Nullable<Rectangle>,BaseTransform[]) Method
The file path to the image.
The image container format; use Unknown to detect the format automatically.
Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
Clipping rectangle for the image after all transformations.
The transformation chain for the image that is being loaded.

In This Topic
    Load(String,WicContainerFormat,Int32,Nullable<Rectangle>,BaseTransform[]) Method
    In This Topic
    Loads the image from a file. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.
    Syntax
    'Declaration
     
    Public Overloads Sub Load( _
       ByVal path As System.String, _
       ByVal containerFormat As WicContainerFormat, _
       ByVal frameIndex As System.Integer, _
       ByVal imageRect As System.Nullable(Of Rectangle), _
       ByVal ParamArray transforms() As BaseTransform _
    ) 
    public void Load( 
       System.string path,
       WicContainerFormat containerFormat,
       System.int frameIndex,
       System.Nullable<Rectangle> imageRect,
       params BaseTransform[] transforms
    )

    Parameters

    path
    The file path to the image.
    containerFormat
    The image container format; use Unknown to detect the format automatically.
    frameIndex
    Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
    imageRect
    Clipping rectangle for the image after all transformations.
    transforms
    The transformation chain for the image that is being loaded.
    See Also